import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get_state_manager/get_state_manager.dart';
import 'package:industry_net/base/common/colors_util.dart';
import 'package:industry_net/base/common/func_util.dart';
import 'package:industry_net/base/common/size_fit.dart';
import 'package:industry_net/base/common/text_util.dart';
import 'package:industry_net/base/component/component.dart';

import 'controller.dart';

class ForgotPage extends GetView<ForgotController> {
  const ForgotPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: detailAppBar(context, elevation: 1, title: '忘记密码'),
      body: Padding(
        padding: EdgeInsets.symmetric(horizontal: 31.w),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            SizedBox(
              height: 32.w,
            ),
            Obx(
              () => Text(
                '当前手机号' + controller.state.phone.value.phone,
                style: pfSCStyle(color: ColorsUtil.title, fontSize: font17),
              ),
            ),
            SizedBox(
              height: 10.w,
            ),
            CodeField(controller: controller.state.codeCtrl),
            separatorLine(),
            SizedBox(
              height: 30.w,
            ),
            ExpandedButton(
              text: '下一步',
              onPressed: controller.nextStep,
            )
          ],
        ),
      ),
    );
  }
}
